import {
  createRouter,
  createWebHashHistory,
  createWebHistory,
} from "vue-router";
import { constantRoute } from "./routes";
const router = createRouter({
  // history: createWebHashHistory(),  // hash 模式
  history: createWebHistory(), // history 模式
  routes: constantRoute,
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    };
  },
});
export default router;
